import request from '@/utils/request'

// 查询称号获得记录列表
export function listRecords(query) {
  return request({
    url: '/system/records/list',
    method: 'get',
    params: query
  })
}

<<<<<<< HEAD
export function getAllDriver(query) {
  return request({
    url: '/system/records/getAllDriver',
    method: 'get',
    params: query
  })
}

export function getAllTitle(query) {
  return request({
    url: '/system/records/getAllTitle',
    method: 'get',
    params: query
  })
}

=======
>>>>>>> e9185f6c397b96272823029e006e49ff36d36fac
// 查询称号获得记录详细
export function getRecords(recordsId) {
  return request({
    url: '/system/records/' + recordsId,
    method: 'get'
  })
}

// 新增称号获得记录
export function addRecords(data) {
  return request({
    url: '/system/records',
    method: 'post',
    data: data
  })
}

// 修改称号获得记录
export function updateRecords(data) {
  return request({
    url: '/system/records',
    method: 'put',
    data: data
  })
}

// 删除称号获得记录
export function delRecords(recordsId) {
  return request({
    url: '/system/records/' + recordsId,
    method: 'delete'
  })
}
